package day003;

public class ForTest01 {
    public static void main(String[] args) {
        System.out.println(1);
        System.out.println(2);
        System.out.println(3);
        System.out.println(4);
        System.out.println(5);
        System.out.println("-----------");
        for (int i = 1; i <= 5; i += 1) {
            System.out.println(i);
        }
        System.out.println("-----------");
        for (int i = 1; i <= 5; i += 2) {
            System.out.println(i);
        }
        System.out.println("-----------");
        for (int i = 1; i <= 5; i++) {
            System.out.println(i);
        }
        System.out.println("-----------");
        for (int i = 1; i <= 5; i++, i++) {
            System.out.println(i);
        }
        System.out.println("-----------");
        for (int i = 5; i >= 1; i -= 1) {
            System.out.println(i);
        }
        System.out.println("-----------");
        for (int i = 5; i >= 1; i--) {
            System.out.println(i);
        }

    }
}
